<?php
/*
*静态化处理
*/
$siteConfig = require(dirname(__FILE__) . '/yii118/protected/config/params.php');

if(isset($siteConfig['isStatic']) && $siteConfig['isStatic']){
    $staticConfig = require(dirname(__FILE__) . '/yii118/protected/config/static.php');
    require(dirname(__FILE__) . '/yii118/protected/components/StaticD.php');
	$staticObj = new StaticD($staticConfig);
	$staticObj->siteParams = $siteConfig;
	//$staticObj->getMem();
	//echo $_SERVER['REQUEST_URI'];
	
	if($staticObj->displayCache()){
	   exit;
	}
	/*else{
       $staticObj->staticToDynamic();
	}*/
	//$staticObj->test();
}
/*$map =  array(
              '/meishi'=>array('r'=>'topic/index/index','cat_code'=>'101'),
			  '/zhusu'=>array('r'=>'topic/index/index','cat_code'=>'104'),
			  '/gouwu'=>array('r'=>'topic/index/index','cat_code'=>'102'),
			  '/discount'=>array('r'=>'discount/index/index'),
			  '/shop'=>array('r'=>'shop/index/index'),
			  '/poster'=>array('r'=>'www/poster/index'),
        );
$requestUri = strtolower($_SERVER['REQUEST_URI']);
isset($map[$requestUri]) && $_GET = array_merge($_GET,$map[$requestUri]);*/
?>
